package com.czk.model.responsebilitychain;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/24 14:32
 */
public class CollegeApprover extends Approver {
    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (5000<purchaseRequest.getPrice()&&purchaseRequest.getPrice()<=10000){
            System.out.println("学院处理了");
        }else {
            approver.processRequest(purchaseRequest);
        }
    }
}
